The number of the wall picture the last view3d_ray met (0 is the first picture).
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_hit_wall() -> intint
The number of the wall picture the last view3d_ray met: 0 is the first picture of the wall sheet, 1 the second, and so on. The room's edge answers 0. It keeps the answer until the next ray.
var d = view3d_ray(view3d_angle());
if (view3d_hit_wall() == 2) { var on_blue = 1; }Notes that the ray met the third wall picture.
It keeps the answer of the last view3d_ray until the next one. The edge of the room answers 0.